package com.example.earchartsspringweb.service.Impl;


import com.example.earchartsspringweb.data.PieData;
import com.example.earchartsspringweb.mapper.PieDataMapper;

import com.example.earchartsspringweb.service.PieDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PieDataServiceImpl implements PieDataService {

    @Autowired
    private PieDataMapper pieDataMapper;

    @Override
    public List<PieData> getAllPieData() {
        return pieDataMapper.selectAll();
    }
}